home *** CD-ROM | disk | FTP | other *** search
- /*
- * comment_ui.c - User interface object initialization functions.
- * This file was generated by `gxv' from `comment.G'.
- * DO NOT EDIT BY HAND.
- */
-
- #include <stdio.h>
- #include <sys/param.h>
- #include <sys/types.h>
- #include <xview/xview.h>
- #include <xview/canvas.h>
- #include <xview/panel.h>
- #include <xview/scrollbar.h>
- #include <xview/svrimage.h>
- #include <xview/termsw.h>
- #include <xview/text.h>
- #include <xview/tty.h>
- #include <xview/xv_xrect.h>
- #include "comment_ui.h"
-
- /*
- * Initialize an instance of object `comm_win'.
- */
- comment_comm_win_objects *
- comment_comm_win_objects_initialize(ip, owner)
- comment_comm_win_objects *ip;
- Xv_opaque owner;
- {
- if (!ip && !(ip = (comment_comm_win_objects *) calloc(1, sizeof (comment_comm_win_objects))))
- return (comment_comm_win_objects *) NULL;
- if (!ip->comm_win)
- ip->comm_win = comment_comm_win_comm_win_create(ip, owner);
- if (!ip->textpane1)
- ip->textpane1 = comment_comm_win_textpane1_create(ip, ip->comm_win);
- return ip;
- }
-
- /*
- * Create object `comm_win' in the specified instance.
- */
- Xv_opaque
- comment_comm_win_comm_win_create(ip, owner)
- comment_comm_win_objects *ip;
- Xv_opaque owner;
- {
- Xv_opaque obj;
-
- obj = xv_create(owner, FRAME_CMD,
- XV_KEY_DATA, INSTANCE, ip,
- XV_WIDTH, 471,
- XV_HEIGHT, 168,
- XV_LABEL, "Image Comments",
- XV_SHOW, FALSE,
- FRAME_SHOW_FOOTER, FALSE,
- FRAME_SHOW_RESIZE_CORNER, FALSE,
- FRAME_CMD_PUSHPIN_IN, TRUE,
- NULL);
- xv_set(xv_get(obj, FRAME_CMD_PANEL), WIN_SHOW, FALSE, NULL);
- return obj;
- }
-
- /*
- * Create object `textpane1' in the specified instance.
- */
- Xv_opaque
- comment_comm_win_textpane1_create(ip, owner)
- comment_comm_win_objects *ip;
- Xv_opaque owner;
- {
- Xv_opaque obj;
-
- obj = xv_create(owner, TEXTSW,
- XV_KEY_DATA, INSTANCE, ip,
- XV_X, 0,
- XV_Y, 0,
- XV_WIDTH, WIN_EXTEND_TO_EDGE,
- XV_HEIGHT, WIN_EXTEND_TO_EDGE,
- OPENWIN_SHOW_BORDERS, TRUE,
- NULL);
- return obj;
- }
-
-